class ReportUtils {
  static const Map<String, int> reportToType = {
    'Sales By Period': salesByPeriod,
    'Sales By Customer': salesByCustomer,
    'Sales By Products / Services': salesByProductAndService,
    'Aged Receivables Summary': agedReceivablesSummary,
    'Aged Payables Summary': agedPayablesSummary,
    'Aged Receivables Details': agedReceivablesDetail,
    'Aged Payables Details': agedPayablesDetail,
    'Purchases By Period': purchasesByPeriod,
    'Purchases By Supplier': purchasesBySupplier,
    'Purchases By Products / Services': purchasesByProductAndService,
    'Inventory Valuation Summary': inventoryValuationSummary,
    'Inventory Valuation Details': inventoryValuationDetails,
    'GST F5': gstF5,
    'GST Details': gstDetails,
    'GST F5 Line': gstF5Line,
    'Tax Computation': taxComputation,
    'Profit & Loss': profitLoss,
    'Balance Sheet': balanceSheet,
    'Statement of Cash Flows': statementOfCashFlows,
    'General Ledger': generalLedger,
    'Journal Entries': journalEntries,
    'Bank Reconciliation': bankReconciliation,
    'Fixed Asset Listings': fixedAssetListings,
    'History': history,
    'General Ledger Detail': GeneralLedgerDetail,
    'Payroll Monthly Summary': payrollMonthlySummary,
  };
  //sales
  static const int salesByPeriod = 1;
  static const int salesByCustomer = 2;
  static const int salesByProductAndService = 11;
  static const int agedReceivablesSummary = 21;
  static const int agedReceivablesDetail = 31;

  //purchases
  static const int purchasesByPeriod = 4;
  static const int purchasesBySupplier = 5;
  static const int purchasesByProductAndService = 12;
  static const int agedPayablesSummary = 22;
  static const int agedPayablesDetail = 32;

  //inventory
  static const int inventoryValuationSummary = 41;
  static const int inventoryValuationDetails = 42;

  //hr & payroll
  static const int payrollMonthlySummary = 88;

  //taxes
  static const int gstF5 = 51;
  static const int gstDetails = 52;
  static const int gstF5Line = 53;
  static const int taxComputation = 61;

  //accountant
  static const int profitLoss = 71;
  static const int balanceSheet = 72;
  static const int statementOfCashFlows = 73;
  static const int generalLedger = 74;
  static const int journalEntries = 75;
  static const int bankReconciliation = 76;
  static const int fixedAssetListings = 77;
  static const int history = 78;
  static const int GeneralLedgerDetail = 79;

  static bool isSalesReport(int id) {
    return id == salesByPeriod ||
        id == salesByCustomer ||
        id == salesByProductAndService ||
        id == agedReceivablesSummary ||
        id == agedReceivablesDetail;
  }

  static bool isPurchasesReport(int id) {
    return id == purchasesByPeriod ||
        id == purchasesBySupplier ||
        id == purchasesByProductAndService ||
        id == agedPayablesSummary ||
        id == agedPayablesDetail;
  }

  static bool isInventoryReport(int id) {
    return id == inventoryValuationSummary || id == inventoryValuationDetails;
  }

  static bool isHRReport(int id) {
    return id == payrollMonthlySummary;
  }

  static bool isTaxReport(int id) {
    return id == gstF5 ||
        id == gstDetails ||
        id == gstF5Line ||
        id == taxComputation;
  }

  static bool isAccountantReport(int id) {
    return id == profitLoss ||
        id == balanceSheet ||
        id == statementOfCashFlows ||
        id == generalLedger ||
        id == journalEntries ||
        id == bankReconciliation ||
        id == fixedAssetListings ||
        id == history ||
        id == GeneralLedgerDetail;
  }
}
